<template>
	<view>
		<view v-if="dataList.length==0" style="background-color: #FFFFFF;text-align: center;height: 80rpx;line-height: 80rpx;color: red;">
			没有找到任何与{{searchValue}}有关的活动
		</view>
		<view v-else style="background-color: #FFFFFF;padding: 20rpx;">
			<view style="margin-left: 20rpx;font-weight: 900;">
				检索到 {{dataList.length}} 条数据
			</view>
			
			<activity-list :data="dataList" :border="true"></activity-list>
		</view>
	</view>
</template>

<script>
	import activityList from "../../components/activity/activity-list.vue";
	export default {
		components: {activityList},
		onLoad(option) {
			this.searchValue = option.searchValue;
			uni.request({
				url: this.url.movement.searchActivity+"/"+this.searchValue,
				method: 'GET',
				header: {},
				success: (res) => {
					this.dataList = res.data.searchActivity
					console.log(this.dataList)
				},
				fail: (res) => {
					console.log(res)
				}
			});
		},
		data() {
			return {
				searchValue:"",
				dataList:"",
			}
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
